package com.perceptivesoftware.licensing.server.user;

import java.util.Date;

//Should ONLY be used by UserSessionTracker
//Test

public class UserSessionDTO
{

	private final String userCode;
	private String sessionID;
	private Date heartbeatTimestamp = new Date();

	public UserSessionDTO(String userCode, String sessionID)
	{
		this.userCode = userCode;
		this.sessionID = sessionID;
	}

	public String getUserCode()
	{
		return userCode;
	}

	public String getSessionID()
	{
		return sessionID;
	}

	public void setSessionID(String sessionID)
	{
		this.sessionID = sessionID;
	}

	public Date getHeartbeatTimestamp()
	{
		return heartbeatTimestamp;
	}

	public void resetHeartbeatTimestamp()
	{
		heartbeatTimestamp = new Date();
	}
}
